From f6002256c9eba9dd0c00248c21717597cabfd1ae Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Sat, 15 Oct 2005 17:59:16 +0000 Subject: [PATCH] Fixed segfault with nameless wpts --- shape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shape.c b/shape.c index 4440374df..6ac97522e 100644 --- a/shape.c +++ b/shape.c @@ -84,7 +84,7 @@ my_read(void) wpt = waypt_new(); wpt->latitude = shp->dfYMin; wpt->longitude = shp->dfXMin; - wpt->shortname = strdup(name); + wpt->shortname = xstrdup(name); waypt_add(wpt); } -- 2.30.2